#! /bin/bash

ceph osd pool create .rgw 8 8
ceph osd pool create .rgw.root 8 8
ceph osd pool create .rgw.control 8 8
ceph osd pool create .rgw.gc 8 8
ceph osd pool create .log 8 8
ceph osd pool create .intent-log 8 8
ceph osd pool create .usage 8 8
ceph osd pool create .users 8 8
ceph osd pool create .users.email 8 8
ceph osd pool create .users.swift 8 8
ceph osd pool create .users.uid 8 8
ceph osd pool create .rgw.buckets 256 256
ceph osd pool create .rgw.buckets.index 256 256
ceph osd pool create .rgw.buckets.extra 256 256

#ceph osd pool create .rgw.buckets.ssd 64 64

#ceph osd pool set .rgw.buckets.index crush_ruleset 6
#ceph osd pool set .rgw.buckets.ssd crush_ruleset 6

ceph osd pool set .rgw crush_ruleset 5
ceph osd pool set .rgw.root crush_ruleset 5
ceph osd pool set .rgw.control crush_ruleset 5
ceph osd pool set .rgw.gc crush_ruleset 5
ceph osd pool set .log crush_ruleset 5
ceph osd pool set .intent-log crush_ruleset 5
ceph osd pool set .usage crush_ruleset 5
ceph osd pool set .users crush_ruleset 5
ceph osd pool set .users.email crush_ruleset 5
ceph osd pool set .users.swift crush_ruleset 5
ceph osd pool set .users.uid crush_ruleset 5
ceph osd pool set .rgw.buckets crush_ruleset 5
ceph osd pool set .rgw.buckets.index crush_ruleset 5
ceph osd pool set .rgw.buckets.extra crush_ruleset 5
